<?php
/**
 * @version		$Id: tr_core.php $
 * @package		Joomla
 * @subpackage	Templates
 * @copyright	Copyright (C) 2010 ThemeRepublic.com
 * @license		Commercial Joomla Web Template
 * @version		1.0
 */
// no direct access
defined('_JEXEC') or die('Restricted access');

$templateName = "Pangea";

// Parameters:
$colorStyle = $this->params->get('colorStyle');
$templateWidth = $this->params->get('templateWidth');
$menuAnimation = $this->params->get('menuAnimation');
$accordionModule = $this->params->get('accordionModule');
$copyrightText = $this->params->get('copyrightText');
$menuAnimationClass = ($menuAnimation) ? "":" noMenuAnimation";
$using_ie6 = (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') !== FALSE);
$url = clone(JURI::getInstance());
$user =&JFactory::getUser();
$document = &JFactory::getDocument();
$url = clone(JURI::getInstance());
$conf  = &JFactory::getConfig();
$task = JRequest::getString('task');
$view = JRequest::getVar('view');
$copyrightText.=JText::_("TPLCREDIT");
$sitename   = $conf->getValue('config.sitename');
$menu = &JSite::getMenu();
$menuItem = $menu->getActive();
$pageclass = "";
if (is_object( $menuItem )) :
	$params = new JParameter( $menuItem->params );
	$pageclass = " ".$params->get( 'pageclass_sfx' );
endif;
$bodyClass = $templateWidth . $pageclass . $menuAnimationClass ;
$pathwayEnabled = ($menu->getActive() != $menu->getDefault()) ? "pathwayEnabled":"pathwayDisabled";


// remove mootools.js and caption.js
if ($using_ie6):
	$headers=$this->getHeadData();
	reset($headers['styleSheets']);
	foreach($headers['styleSheets'] as $key=>$value){
		unset($headers['styleSheets'][$key]);
	}		
	$this->setHeadData($headers);
endif;

?>